<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("sys:sysorder:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:sysorder:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:sysorder:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysOrder.orderId" placeholder="订单id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysOrder.name" placeholder="商品名称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">快递公司</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysOrder.courier" placeholder="快递公司"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">所属门店/商户id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysOrder.storeId" placeholder="所属门店/商户id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单状态：1已取消，2待确认，3代付款，4已完成，5已支付，6已发货,7申请退款中，8申请退货中,9退货完成，10退款完成</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysOrder.state" placeholder="订单状态：1已取消，2待确认，3代付款，4已完成，5已支付，6已发货,7申请退款中，8申请退货中,9退货完成，10退款完成"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建订单时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysOrder.creationTime" placeholder="创建订单时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">会员名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysOrder.userName" placeholder="会员名称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysOrder.money" placeholder="订单金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">配送方式：1快递，2到店自取</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysOrder.distribution" placeholder="配送方式：1快递，2到店自取"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">支付时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysOrder.payTime" placeholder="支付时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">配送地址</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysOrder.addresses" placeholder="配送地址"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">购买数量</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysOrder.amount" placeholder="购买数量"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">门店名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysOrder.storeName" placeholder="门店名称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商户名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysOrder.merchantName" placeholder="商户名称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单类型：1门店，2商户</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysOrder.type" placeholder="订单类型：1门店，2商户"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/sysorder.js?_${.now?long}"></script>
</body>
</html>